package csy.view.memeda.base;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;

import butterknife.ButterKnife;

/**
 * Created by chengsiyuan on 2017/10/13.
 */

public abstract class BaseActivity extends Activity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setViewLayout();
        ButterKnife.bind(this);
        onCreatee();
    }


    protected void setViewLayout() {
        setContentView(getContentViewResId());
    }

    protected abstract int getContentViewResId();

    protected abstract void onCreatee();


}
